import request from "@/utils/request";
import axiosFile from "axios";
//菜单数据
export function productPage(data) {
  return request({
    url: "/group_buying_page_api",
    method: "get",
    params: data,
  });
}
//商品数据添加
export function addcommodity(data) {
  return axiosFile({
    url: "/add_group_buying_api",
    method: "post",
    data: data,
  });
}
//单品列表
export function singleItem(data) {
  return request({
    url: "/variety_of_dishes_page_api",
    method: "get",
    params: data,
  });
}
//单品数据添加
export function addSingle(data) {
  return axiosFile({
    url: "/add_variety_of_dishes_api",
    method: "post",
    data: data,
  });
}
//商品按钮接口
export function add_group(data) {
  return request({
    url: "/add_group_buying_button_api",
    method: "get",
    params: data,
  });
}
//删除数据
export function del_group(data) {
    return request({
      url: "/delete_shop_api",
      method: "POST",
      params: data,
    });
  }
  //修改接口
export function editSingle(data) {
    return request({
      url: "/modify_shop_api",
      method: "post",
      params: data,
    });
  }
